package mv.util;

import mv.main.MObject;
import mv.io.SimpleProperties;

/**
 * Class description...
 *
 * @author mvu
 */
public class EncryptionUtil extends MObject {
  
  public static String encrypt(String content) {
    StringBuilder builder = new StringBuilder();
    int pin = SimpleProperties.getPasscode();
    for (int i = 0; i < content.length(); i++) {
      char masked = (char) (pin ^ content.charAt(i) );
      builder.append(masked);
    }
    return builder.toString();
  }
}
